<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
<head th:replace="layouts::header"></head>
<body>
<nav th:replace="layouts::navbar"></nav>
<div class="container1 ">
    <form th:action="@{/class/save}" th:object="${aClass1}" method="POST">
        <div class="box">
        <div class="form-group">
            <div >
                <label class="a1">班级名称:</label>
                <input type="text" placeholder="请输入班级名称" th:field="${class1.class1Name}"><br>
                <span th:if="${#fields.hasErrors('class1Name')}" th:errors="${class1.class1Name}"></span>
            </div>
        </div>
        <br>
        <div class="form-group">
            <div>
                <label class="a1">所属学院:</label>
                <input type="text" placeholder="请输入学院名称" th:field="${class1.college}"><br>
                <span th:if="${#fields.hasErrors('college')}" th:errors="${class1.college}"></span>
            </div>
        </div>
        <br>
                <div class="form-group">
                    <div>
                        <label class="a1">辅导员:</label>
                        <select class="form-control" style="width: 290px" th:field="*{teacher}">
                            <option th:each="teacher : ${teacher}" th:value="${teacher.teacherId}" th:text="${teacher.name1}">
                            </option>
                        </select>
                    </div>
                </div>
                <br>
        </div>
<div class="a2">
        <button class="btn btn-info" type="submit">创建班级</button>
</div>
    </form>
</div>
</body>
</html>